feat(providers): add OrcaRouter as a named provider - #376
Open
putraperdana1207-pixel wants to merge 1 commit into
Open
feat(providers): add OrcaRouter as a named provider#376putraperdana1207-pixel wants to merge 1 commit into
putraperdana1207-pixel wants to merge 1 commit into
Conversation
Add OrcaRouter, an OpenAI-compatible AI gateway, as a first-class
provider alongside OpenRouter. LiteLLM carries no "orcarouter" route,
so the gateway is reached through the OpenAI driver with the full model
namespace kept on the wire ("openai/<namespace>/<model>"); a bare
router name such as "orcarouter/auto" keeps its prefix so the upstream
recognises it.
- registry: add orcarouter ProviderSpec (sk-orca- key detection, default
api base https://api.orcarouter.ai/v1, via_driver=openai)
- wire: support a gateway whose upstream keeps the full model namespace
- config: declare the orcarouter section in the provider schema
- onboarding / model picker / README: surface OrcaRouter in the catalog
- tests: wire-form conversion, gateway detection, LiteLLM resolution,
and the regenerated wire-model baseline
Co-authored-by: Claude (deepseek-v4-flash-0731) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This adds OrcaRouter as a first-class provider in Raven's registry, mirroring how OpenRouter is wired in. OrcaRouter is an OpenAI-compatible AI gateway built for both models and agents. Like OpenRouter, it exposes a provider/model namespace across many models -- but it also combines adaptive routing, automatic failover, zero-markup inference, observability, guardrails, and agent-tool governance behind the same endpoint. Adding
orcarouteras a named provider means Raven's users can use that stack directly, without treating OrcaRouter as an anonymous custom base URL.LiteLLM carries no
orcarouterroute, so the gateway is reached through the OpenAI driver while keeping the full model namespace on the wire (openai/<namespace>/<model>). A bare router name such asorcarouter/autokeeps itsorcarouter/prefix so the upstream recognises it.It also runs gateway-level, zero-trust security for AI agents on the same endpoint -- screening every prompt/response and governing every tool call on a default-deny basis, with no application code changes.
Changes:
raven/providers/registry.py: add theorcarouterProviderSpec(key-prefix detectionsk-orca-, default api basehttps://api.orcarouter.ai/v1,via_driver="openai") and avia_driver_preserves_namespacegateway flag.raven/providers/wire.py: build the wire form for a namespace-preserving gateway (swap only the gateway's own prefix for the driver's; keeporcarouter/autoprefixed).raven/config/schema.py: declare theorcarouterprovider section.raven/providers/common_models.py/raven/cli/onboard_commands.py/ README: surface OrcaRouter in the curated model shortlist, the onboarding picker, and the provider catalog.Verification (local, Python 3.12):
uv run --frozen pytest -q-> 7126 passed (two unrelated pre-existing environment-dependent failures onmain:test_everos_serverreal-psdetection and aTERM-sensitive rich render assertion).uv run ruff check+uv run ruff format --checkon the changed files -> clean.https://api.orcarouter.ai/v1through Raven'sLiteLLMProviderwire path:orcarouter/auto,orcarouter/openai/gpt-5.5, andorcarouter/anthropic/claude-haiku-4.5each returned 200.Type
Verification
Risk
Backward compatible: the change only adds a provider; existing gateway behavior (OpenRouter, AiHubMix) is covered by the same wire-model tests and unchanged.
Related Issues
N/A
I'm an engineer on the OrcaRouter team.
Discord: discord.gg/YEubt8enRA - X: https://x.com/OrcaRouter